<template>
	<view class="paradise-jackpot">
		<view class="pj_xy_img">
			<image src="/static/index/paradise/xy.png" mode="widthFix"></image>
		</view>
		<view class="pj_info" v-if="isToken">
			<view class="info_name">
				<image class="info_name_img" src="https://kayouyou-1257308601.cos.ap-guangzhou.myqcloud.com/d74fc8bd34c14f7294476a160fa2fd47.jpg" mode=""></image>
				<text>张喜可</text>
			</view>
			<view class="jackpot">
				<image  src="/static/index/paradise/p_4.png" mode=""></image>
			</view>
			<view class="info_tips">
				<text>恭喜您在神椰资产争夺战中获得第一名</text>
			    <text>获得价值200CoCo资产包</text>	
			</view>
		</view>
		<navigator class="pj_login" v-else hover-class="none" url="/pages/login/login">
			<text class="pj_login_l">请登陆后查看是否夺奖</text>
			<view class="pj_login_r">
				<text>去登录</text>
				<image src="/static/wallet/red_right.png" mode="widthFix"></image>
			</view>
		</navigator>
		<view class="pj_title" v-if="isToken">资产已发放至神椰账户</view>
		<view class="pj_list">
			<view class="list_title">
				<text class="t_l">中奖名单</text>
				<text class="t_r">幸运奖池贡献前10名</text>
			</view>
			<view class="list_item_box" v-for="(item,index) in dataList" :key="index">
				<view class="list_item">
					<view class="li_l">
						 <image v-if="index == 0" class="li_l_img" src="/static/index/paradise/p_1.png" mode=""></image>
						 <image v-else-if="index == 1" class="li_l_img" src="/static/index/paradise/p_2.png" mode=""></image>
						 <image v-else-if="index == 2" class="li_l_img" src="/static/index/paradise/p_3.png" mode=""></image>
						 <text class="li_l_n" v-else>{{index < 9 ?'0'+(Number(index)+1):Number(index)+1}}</text>
						 <view class="li_l_w">
							<text class="lw_t">第一名</text>
							<text class="lw_s">价值200CoCo资产包</text>
						 </view>
					</view>
					<view class="li_r">
						<image src="https://kayouyou-1257308601.cos.ap-guangzhou.myqcloud.com/d74fc8bd34c14f7294476a160fa2fd47.jpg" mode=""></image>
						<text class="r_t">139****7253</text>
					</view>
				</view>
				<view class="list_item_line" v-if="index != dataList.length-1"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[
					{},{},{},{},{},{},{},{},{},{},{},{},{},
				],
				isToken:false
			}
		},
		onLoad() {
			this.isToken = uni.getStorageSync('token')?true:false
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	page{
		height: 100%;
	}
	view{
	  box-sizing: border-box;
	}
	.paradise-jackpot{
		width: 100%;
		min-height:100%;
		background: #EC0B43 url('/static/index/paradise/head_bg.png') no-repeat;
		background-size: 100% 556rpx;
		padding-top: 46rpx;
		padding-bottom: 88rpx;
	}
	.pj_xy_img{
		width: 544rpx;
		height: 240rpx;
		margin: 0 auto;
		margin-bottom: 60rpx;
		
	}
	.pj_xy_img image{
		width: 100%;
		height: 100%;
	}
	.pj_info{
		width: 690rpx;
		background: #fff;
		padding: 30rpx 30rpx 40rpx 30rpx;
		border-radius: 24rpx;
		margin: 0 auto;
		margin-bottom: 26rpx;
	}
	.info_name{
		font-size: 34rpx;
		color: #222222;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.info_name .info_name_img{
		width: 70rpx;
		height: 70rpx;
		border-radius: 50%;
		margin-right: 18rpx;
	}
	.jackpot{
		width: 340rpx;
		height: 340rpx;
		margin: 0 auto;
		margin-top: -32rpx;
	}
	.jackpot image{
		width: 100%;
		height: 100%;
	}
	.info_tips{
		display: flex;
		flex-direction: column;
		color: #F63131;
		font-size: 32rpx;
		text-align: center;
	}
	.pj_title{
		width: 100%;
		padding: 0 40rpx;
		text-align: right;
		font-size: 28rpx;
		color: #fff;
	}
	.pj_list{
		width: 710rpx;
		background: url('/static/index/paradise/p_7.png') no-repeat;
		background-size: 100% auto;
		border-radius: 0 0 24rpx 24rpx;
		margin: 0 auto;
		padding-top: 88rpx;
		padding-bottom: 38rpx;
		margin-top: 40rpx;
	}
	.list_title{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0 30rpx 0 40rpx;
		margin-bottom: 44rpx;
	}
	.t_l{
		font-size: 36rpx;
		color: #222222;
	}
	.t_r{
		font-size: 30rpx;
		color: #666666;
	}
	.list_item_box{
		background: #fff;
	}
	.list_item_box:last-child{
		border-radius: 0 0 24rpx 24rpx;
		
	}
	.list_item{
		/* width: 100%; */
		padding: 20rpx 30rpx 40rpx 24rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.li_l_n{
		color: #F63131;
		font-size: 34rpx;
		margin-right: 24rpx;
		font-weight: 600;
	}
	.list_item_line{
		margin: 0 40rpx 0 20rpx;
		border-bottom: 2rpx solid #CFD9ED;
	}
	.li_l{
		display: flex;
		flex-direction: row;
	}
	.li_l_img{
		width: 48rpx;
		height: 48rpx;
		margin-right: 20rpx;
		border-radius: 50%;
	}
	.li_l_w{
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	.lw_t{
		color: #222222;
		font-size: 32rpx;
		font-weight: bold;
		margin-bottom: 6rpx;
		line-height: 44rpx;
	}
	.lw_s{
		color: #555555;
		font-size: 24rpx;
		line-height: 34rpx;
	}
	.li_r{
		display: flex;
		flex-direction: row;
		align-items: center;
		color: #222222;
		font-size: 24rpx;
		line-height: 34rpx;
	}
	.li_r image{
		width: 40rpx;
		height: 40rpx;
		margin-right: 8rpx;
		border-radius: 50%;
	}
	.pj_login{
		width: 690rpx;
		background: #fff;
		padding: 40rpx 28rpx 40rpx 50rpx;
		box-sizing: border-box;
		border-radius: 24rpx;
		margin: 0 auto;
		margin-bottom: 26rpx;
		color: #F63131;
		font-size: 32rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 164rpx;
	}
	.pj_login_r{
		display: flex;
		align-items: center;
		flex-direction: row;
	}
	.pj_login_r image{
		width: 15rpx;
		height: 16rpx;
		margin-left: 8rpx;
		margin-top: 4rpx;
		
	}
</style>
